* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen',
    'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue',
    sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  transition: background-color 0.3s, color 0.3s;
}

code {
  font-family: source-code-pro, Menlo, Monaco, Consolas, 'Courier New',
    monospace;
}

/* 暗黑模式全局样式 */
html.dark {
  color-scheme: dark;
}

html.dark body {
  background-color: #141414;
  color: #e5e7eb;
}

/* 主题主色（参考优秀后台主题） */
:root {
  --el-color-primary: #6366f1; /* indigo-500 */
  --el-color-primary-light-3: #818cf8;
  --el-color-primary-light-5: #a5b4fc;
  --el-color-primary-light-7: #c7d2fe;
  --el-color-primary-light-8: #e0e7ff;
  --el-color-primary-light-9: #eef2ff;
  --el-color-primary-dark-2: #4f46e5;
}

html.dark {
  --el-color-primary: #818cf8;
  --el-color-primary-dark-2: #6366f1;
}

/* 页面容器细节 */
.el-card {
  border-radius: 12px;
}

.el-button.is-text:hover {
  background: rgba(99,102,241,0.06);
}